package com.vhall.component.controller.rbac.inner;

import com.vhall.component.entity.rbac.vo.ActionsVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 角色信息
 *
 * @author longzhen.gong
 * @date 2021/6/10 11:01
 */
@FeignClient(name = "RbacActionInnerFacade", path = "/v4/inner/rbac/action")
public interface RbacActionInnerFacade {

    /**
     * 按角色获取权限列表
     *
     * @param roleId 参数
     * @return 列表
     */
    @ApiOperation("按角色获取权限列表")
    @GetMapping("/getListByRoleId")
    List<ActionsVO> listByRoleId(@RequestParam("role_id") Integer roleId);

}
